package website.sgg;

/**
 * @Author: 582895699@qq.com
 * @Desctription:
 * @Date: Created in 2023/1/8 20:27
 */
public class OpenAndClose implements IOpenAndClose {
    private Itv itv;

    @Override
    public void open() {
        itv.play();
    }

    @Override
    public void setITv(Itv itv) {
        this.itv = itv;
    }

    public static void main(String[] args) {
        OpenAndClose openAndClose = new OpenAndClose();
        openAndClose.setITv(new AppleITv());
        openAndClose.open();
    }
}
